<?php /* Smarty version 2.6.19, created on 2012-10-08 01:44:46
         compiled from D:/xampp/htdocs/nghiepquang/templates/eBoxMenuCate/eBoxMenuCateForm.tpl */ ?>
<?php echo '
<style>

    .danhmuc ul.m-left-ex {
        position : static !important;
        display: block;
        border: 0;
    }
    .danhmuc ul.m-left-ex>li{
        border-bottom: none;
        border-top: 1px solid #efefef;
        padding-left: 10px;

    }
    .danhmuc ul.m-left-ex>li>a{
        text-transform: lowercase;
    }
</style>
'; ?>

<div class="title_sidebar"><p>Sản phẩm<?php if ($this->_tpl_vars['is_admin']): ?><a href="<?php echo @WEB_DIR; ?>
category.html" target="new" title="Quản lý danh mục">[Sửa]</a><?php endif; ?> </p>
</div>
<div class="danhmuc">

    <ul class="pMenu">
    <?php $_from = $this->_tpl_vars['topcats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['topcat']):
?>
        <li class="m-left ">
            <a <?php if ($this->_tpl_vars['CURENT_TOP_CATID'] && $this->_tpl_vars['CURENT_TOP_CATID'] == $this->_tpl_vars['topcat']['id']): ?>style="color: red;" <?php endif; ?> href="<?php echo $this->_tpl_vars['topcat']['url']; ?>
" <?php echo $this->_tpl_vars['topcat']['target']; ?>
><?php echo $this->_tpl_vars['topcat']['name']; ?>
</a>
            <?php if ($this->_tpl_vars['topcat']['subs']): ?>
                <ul class="left-sub <?php if ($this->_tpl_vars['CURENT_TOP_CATID'] && $this->_tpl_vars['CURENT_TOP_CATID'] == $this->_tpl_vars['topcat']['id']): ?>m-left-ex<?php endif; ?>">
                    <?php $_from = $this->_tpl_vars['topcat']['subs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat_sub'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat_sub']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['sub']):
        $this->_foreach['cat_sub']['iteration']++;
?>
                        <li title="<?php echo $this->_tpl_vars['sub']['name']; ?>
" id="msub_left_li_<?php echo $this->_tpl_vars['sub']['id']; ?>
"><a <?php if ($this->_tpl_vars['category_id'] == $this->_tpl_vars['sub']['id']): ?> style="color: red;" <?php endif; ?>
                                                                                                                                                                                      href="<?php echo $this->_tpl_vars['sub']['url']; ?>
" <?php echo $this->_tpl_vars['sub']['class']; ?>
><?php echo $this->_tpl_vars['sub']['name']; ?>
</a></li>
                    <?php endforeach; endif; unset($_from); ?>
                </ul>
            <?php endif; ?>
        </li>

    <?php endforeach; endif; unset($_from); ?>
    </ul>
    <div style="clear: both;"></div>
</div>



